package com.yjymm.commonsdk.common.exception.en;

/**
 * @author panhaoxiong
 * @date 2021-02-07 14:24
 */

public enum TokenResultEnum implements BusinessEnum{
    TOKEN_EXPIRE(8001, "token过期，请重新登录"),
    TOKEN_PARSE_ERROR(8002, "token解析失败")
    ;
    private Integer code;
    private String message;

    TokenResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
